/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.material;

import com.server.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * 资料上传管理Entity
 * @author 王磊
 * @version 2016-08-23
 */
public class MaterialUpload extends DataEntity<MaterialUpload> {
	
	private static final long serialVersionUID = 1L;
	protected String typeId;		// 资料类别
	protected String groupId;		// 资料组ID,可能同时存在多份资料
	protected String name;		// 资料名称
	protected String url;		// 资料存储位置
	protected String orderBy;		// 资料排序
	protected String memberId;		// 用户id
	protected String md5;		// md5
	protected String value;

	
	protected String typeName;		// 资料类别名称
	protected String  typeType;// 资料类别类型
	
	protected String parentTypeName;
	protected String parentTypeId;
	
	
	protected Boolean isClear;//是否清晰
	
	protected Boolean isLoanNeedMaterial=false;//标记是否是某个贷款所需要的资料
	
	protected List<MaterialUpload> children;
	protected String radiovalue;
	protected String iconvalues;

	protected String groupIndex;//用于显示分组号的属性 和数据库无关

	public String getTypeType() {
		return typeType;
	}

	public void setTypeType(String typeType) {
		this.typeType = typeType;
	}

	public Boolean getClear() {
		return isClear;
	}

	public void setClear(Boolean clear) {
		isClear = clear;
	}

	public Boolean getLoanNeedMaterial() {
		return isLoanNeedMaterial;
	}

	public void setLoanNeedMaterial(Boolean loanNeedMaterial) {
		isLoanNeedMaterial = loanNeedMaterial;
	}

	public String getGroupIndex() {
		return groupIndex;
	}

	public void setGroupIndex(String groupIndex) {
		this.groupIndex = groupIndex;
	}

	public String getIconvalues() {
		return iconvalues;
	}

	public void setIconvalues(String iconvalues) {
		this.iconvalues = iconvalues;
	}

	public String getRadiovalue() {
		return radiovalue;
	}

	public void setRadiovalue(String radiovalue) {
		this.radiovalue = radiovalue;
	}

	public List<MaterialUpload> getChildren() {
		return children;
	}

	public void setChildren(List<MaterialUpload> children) {
		this.children = children;
	}

	public Boolean getIsLoanNeedMaterial() {
		return isLoanNeedMaterial;
	}

	public void setIsLoanNeedMaterial(Boolean isLoanNeedMaterial) {
		this.isLoanNeedMaterial = isLoanNeedMaterial;
	}

	public String getParentTypeId() {
		return parentTypeId;
	}

	public void setParentTypeId(String parentTypeId) {
		this.parentTypeId = parentTypeId;
	}

	public String getParentTypeName() {
		return parentTypeName;
	}

	public void setParentTypeName(String parentTypeName) {
		this.parentTypeName = parentTypeName;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Boolean getIsClear() {
		return isClear;
	}

	public void setIsClear(Boolean isClear) {
		this.isClear = isClear;
	}

	public MaterialUpload() {
		super();
	}

	public MaterialUpload(String id){
		super(id);
	}

	@Length(min=1, max=64, message="资料类别长度必须介于 1 和 64 之间")
	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	
	@Length(min=1, max=64, message="资料组ID,可能同时存在多份资料长度必须介于 1 和 64 之间")
	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	
	@Length(min=0, max=255, message="资料名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="资料存储位置长度必须介于 0 和 255 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=0, max=8, message="资料排序长度必须介于 0 和 8 之间")
	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	
	@Length(min=0, max=64, message="用户id长度必须介于 0 和 64 之间")
	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	@Length(min=1, max=64, message="md5长度必须介于 1 和 64 之间")
	public String getMd5() {
		return md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}